/**
 * 郭楠project
 * com.gn.micblog.entity
 * Article.java
 * 创建人:TonyGuo 
 * 时间：2016年6月11日-上午12:46:11 
 * 2016Tm公司-版权所有
 */
package com.gn.entity;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 
 * Article
 * 创建人:TonyGuo
 * 时间：2016年6月11日-上午12:46:11 
 * @version 1.0.0
 * 
 */
@Document(collection="article")
public class Article implements Serializable{
	private static final long serialVersionUID = 1952654758811414609L;
	public static final String CREATETIME="createtime";
	@Id
	private String id;
	
	/**文章标题*/
	@Indexed
	private String title;
	
	/**文章来源：eg.新华社*/
	private String source;
	
	/**文章内容*/
	private String content;
	
	/**文章封面图像*/
	private String img;
	
	/**文章简介*/
	private String desc;
	
	/**状态（replied/no_reply）*/
	private String state;
	
	/**userid*/
	private String userid;
	
	/**username（该文章的发表链接，用户）*/
	private String username;
	
	/**创建时间*/
	private String createtime;
	
	/**阅读量*/
	private String readCount;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	public String getReadCount() {
		return readCount;
	}
	public void setReadCount(String readCount) {
		this.readCount = readCount;
	}
	
	/**
	 * img
	 *
	 * @return  the img
	 * @since   1.0.0
	 */
	
	public String getImg() {
		return img;
	}
	/**
	 * @param img the img to set
	 */
	public void setImg(String img) {
		this.img = img;
	}
	/**
	 * desc
	 *
	 * @return  the desc
	 * @since   1.0.0
	 */
	
	public String getDesc() {
		return desc;
	}
	/**
	 * @param desc the desc to set
	 */
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	/**
	 * source
	 *
	 * @return  the source
	 * @since   1.0.0
	 */
	
	public String getSource() {
		return source;
	}
	/**
	 * @param source the source to set
	 */
	public void setSource(String source) {
		this.source = source;
	}
	@Override
	public String toString() {
		return "Article [id=" + id + ", title=" + title + ", content="
				+ content + ", state=" + state + ", userid=" + userid
				+ ", username=" + username + ", createtime=" + createtime
				+ ", readCount=" + readCount + "]";
	}
	
	
	

}
